/**
 * Copyright (C), 2015-2020, XXX有限公司 FileName: OperationLog Author: xiao Date: 2020/11/20 21:42
 * History: <author> <time> <version> <desc> 作者姓名 修改时间 版本号 描述
 */
package com.hsiao.springboot.logback.model;

import java.util.Date;

/**
 * 〈一句话功能简述〉<br>
 *
 * @projectName springboot-parent
 * @title: OperationLog
 * @description: TODO
 * @author xiao
 * @create 2020/11/20
 * @since 1.0.0
 */
public class OperationLog {

  private String id;
  private Date createTime;
  /** 日志等级 */
  private Integer level;
  /** 被操作的对象 */
  private String operationUnit;
  /** 方法名 */
  private String method;
  /** 参数 */
  private String args;
  /** 操作人id */
  private String userId;
  /** 操作人 */
  private String userName;
  /** 日志描述 */
  private String describe;
  /** 操作类型 */
  private String operationType;
  /** 方法运行时间 */
  private Long runTime;
  /** 方法返回值 */
  private String returnValue;

  @Override
  public String toString() {
    return "OperationLog{"
        + "id='"
        + id
        + '\''
        + ", createTime="
        + createTime
        + ", level="
        + level
        + ", operationUnit='"
        + operationUnit
        + '\''
        + ", method='"
        + method
        + '\''
        + ", args='"
        + args
        + '\''
        + ", userId='"
        + userId
        + '\''
        + ", userName='"
        + userName
        + '\''
        + ", describe='"
        + describe
        + '\''
        + ", operationType='"
        + operationType
        + '\''
        + ", runTime="
        + runTime
        + ", returnValue='"
        + returnValue
        + '\''
        + '}';
  }

  public Long getRunTime() {
    return runTime;
  }

  public void setRunTime(Long runTime) {
    this.runTime = runTime;
  }

  public String getReturnValue() {
    return returnValue;
  }

  public void setReturnValue(String returnValue) {
    this.returnValue = returnValue;
  }

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

  public Integer getLevel() {
    return level;
  }

  public void setLevel(Integer level) {
    this.level = level;
  }

  public String getOperationUnit() {
    return operationUnit;
  }

  public void setOperationUnit(String operationUnit) {
    this.operationUnit = operationUnit;
  }

  public String getMethod() {
    return method;
  }

  public void setMethod(String method) {
    this.method = method;
  }

  public String getArgs() {
    return args;
  }

  public void setArgs(String args) {
    this.args = args;
  }

  public String getUserId() {
    return userId;
  }

  public void setUserId(String userId) {
    this.userId = userId;
  }

  public String getUserName() {
    return userName;
  }

  public void setUserName(String userName) {
    this.userName = userName;
  }

  public String getDescribe() {
    return describe;
  }

  public void setDescribe(String describe) {
    this.describe = describe;
  }

  public String getOperationType() {
    return operationType;
  }

  public void setOperationType(String operationType) {
    this.operationType = operationType;
  }
}
